#pragma once
#include <ctime>

namespace krryn{
namespace core{
	class timer{
	public:
		timer(){
			reset();
		}

		void reset(){
			m_StartTime = std::clock();
		}

		float elapsed_in_seconds() const{
			return static_cast<float>(std::clock() - m_StartTime) / CLOCKS_PER_SEC;
		}
	private:
		std::clock_t m_StartTime;
	};
}
}